package com.sky.mapper.user;

import com.sky.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface UserOrderMapper {


    int insertSubmint(Orders orders);

    int updateOutTradeNo(Orders orders);

    List<Orders> selectBySatus(@Param("status") Integer status, @Param("time") LocalDateTime time);

    List<Orders> selectOrdersByStatusAndTime(@Param("status") Integer status,@Param("maxTime") LocalDateTime maxTime,@Param("time") LocalDateTime time);

}
